﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DomainModel;
using BL;

namespace SL
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService4" in both code and config file together.
    [ServiceContract]
    public interface ISLOrderItems
    {
        [OperationContract]
        void InsertOrderItems(OrderItem item, ref List<string> errors);

        [OperationContract]
        int NumOrderItems(ref List<string> errors);

        [OperationContract]
        List<OrderItem> SeeMyHistory(int id, ref List<string> errors);

        [OperationContract]
        void DeleteOrderItem(int oid, int pid, ref List<string> errors);

        [OperationContract]
        void ClearOrderItems(int oid, ref List<string> errors);

        [OperationContract]
        List<OrderItem> GetOrderProducts(int id, ref List<string> errors);

    }
}
